package com.colin.userservice.service;

import com.colin.bean.User;
import com.colin.bean.UserFollow;
import com.colin.bean.Video;
import com.colin.response.R;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

@Service
public interface UserService {
    R<User> doLogin(User user);

    R<Boolean> doRegister(User user, String smsCode);

    R<String> doCode(String phoneNum);

    R<List<User>> getFollowList();

    R<Boolean> doFollow(String userId);

    R<Boolean> doUnFollow(String userId);

    R<List<User>> getSearch(String description);

    R<Boolean> doUpdate(User user);


    R<Boolean> uploadAvatar(MultipartFile avatar) throws IOException;

    R<User> getUserDetail();

    R<UserFollow> getFollowStatus(String userId);
}
